package com.synergy.stockflow.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Schema
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "process_detail")
public class ProcessDetail {
    /**
     * 详情ID
     */
    @TableId(value = "detail_id", type = IdType.ASSIGN_ID)
    @Schema(description="详情ID")
    private String detailId;

    /**
     * 所属工艺路线ID
     */
    @TableField(value = "process_route_id")
    @Schema(description="所属工艺路线ID")
    private String processRouteId;

    /**
     * 工序ID
     */
    @TableField(value = "process_id")
    @Schema(description="工序ID")
    private String processId;

    /**
     * 工序顺序
     */
    @TableField(value = "sort")
    @Schema(description="工序顺序")
    private Integer sort;

    @TableField(value = "process_name")
    @Schema(description="工序名称")
    private String processName;

    @TableField(value = "Process_relationship")
    @Schema(description="与下一道工序的关系")
    private String processRelationship;

    @TableField(value = "Key_process")
    @Schema(description="是否为关键工序")
    private Integer keyProcess;

    @TableField(value = "Quality_inspection")
    @Schema(description="质检确认")
    private Integer qualityInspection;

    @TableField(value = "Preparation_time")
    @Schema(description="准备时间")
    private Integer preparationTime;

    @TableField(value = "Wait_time")
    @Schema(description="等待时间")
    private Integer waitTime;
}